<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/29
 * Time: 11:27
 */

namespace App;


use Illuminate\Database\Eloquent\Model;

class UserMappingCashCoupon extends Model
{
    // 表名称
    protected $table = 'user_mapping_cash_coupon';
    // 开启自动时间戳
    public $timestamps = true;
    // 日期都存储为时间戳
    protected $dateFormat = 'U';

    public function cashCoupon()
    {
        return $this->belongsTo('App\CashCoupon', 'cash_coupon_id', 'id');
    }
}